import i18n from '@src/locales'
import { uuid } from '@src/util/lang/string';

const FLOW_MAPV2 = [
  {
    id: uuid(),
    type: 'create',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.create.name'),
    icon: 'icon-xinjian',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],
  },
  {
    id: uuid(),
    type: 'allot',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.allot.name'),
    icon: 'icon-zhipai',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],

  },
  {
    id: uuid(),
    type: 'accept',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.accept.name'),
    icon: 'icon-jieshou',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],
  },
  {
    id: uuid(),
    type: 'start',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.start.name'),
    icon: 'icon-kaishi',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],
  },
  {
    id: uuid(),
    type: 'finish',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.finish.name'),
    icon: 'icon-wancheng',
    isSystem: 1,
    isCommon: 0,
  },
  {
    id: uuid(),
    type: 'cost',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.cost.name'),
    icon: 'icon-jiesuan',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],
   
  },
  {
    id: uuid(),
    type: 'review',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.review.name'),
    icon: 'icon-huifang',
    isSystem: 1,
    isCommon: 0,
    data: {},//节点配置信息
    children: [],
    nodeList: [],
  },
  {
    id: uuid(),
    type: 'close',
    title: i18n.t('task.setting.taskTypeSetting.flow.flowMap.close.name'),
    icon: 'icon-jieshu',
    isSystem: 1,
    isCommon: 0,
  },
]


export default FLOW_MAPV2;